package com.skyvin.nreceipts.admin.service;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.skyvin.nreceipts.admin.mongorepository.ItemCategoryTemplateRepository;
import com.skyvin.nreceipts.common.document.ReceiptItemCategoryTemplate;

@Service
public class ReceiptItemCategoryTemplateService {
	private static Logger logger = Logger.getLogger(ReceiptItemCategoryTemplateService.class);
	@Autowired
	private ItemCategoryTemplateRepository itemCategoryTemplateRepository;
	
	public ReceiptItemCategoryTemplate save(ReceiptItemCategoryTemplate receiptItemTemplateCategory) {
		return itemCategoryTemplateRepository.save(receiptItemTemplateCategory);
	}

	public void delete(String receiptItemCategoryPID) {
		itemCategoryTemplateRepository.delete(receiptItemCategoryPID);
	} 
	
}
